{{define "mobile/ordinary/baseInfo.html"}}
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<meta name="format-detection" content="telephone=no">
	<title>基本信息</title>
	<link rel="stylesheet" type="text/css" href="/res/mobile/css/weui.css"/>
	<link rel="stylesheet" type="text/css" href="/res/mobile/css/example.css"/>
	<link rel="stylesheet" type="text/css" href="/res/mobile/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="/res/mobile/css/base.css?v=21" />
</head>
<body ontouchstart>
	<div  class="header">基本信息</div>
	<div class="container" id="container">
		<div class="page flex  js_show">
			<div class="page__bd" style="height: 100%;">
				<div class="weui-tab">
					<div class="weui-tab__panel">
						<div class="page__bd page__bd_spacing">
							<div class="weui-flex">
								<div>
									<div class="placeholder">行政区域：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="area"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">筛查时间：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="screenDate"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">定点筛查机构：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="screenOrganCode"></div>
								</div>
							</div>
							<div class="_cut"></div>
							<div class="personal second-title">人口学信息</div>
							<div class="weui-flex">
								<div class="weui-flex__item">
									<div class="placeholder">姓名：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="userName"></div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder">性别：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="userSex"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="weui-flex__item">
									<div class="placeholder">年龄：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="age"></div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder">民族：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="nation"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div>
									<div class="placeholder">身份证号：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="idCard"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">婚姻状况：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="marital"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">居住状况：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="livingStatus"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">受教育程度：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="educationStatus"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">是否已退休 ：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="retired"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">职业（退休前职业）：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="profession"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">本人年均收入：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="income"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">主要医疗付费方式：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="paymentMethod"></div>
								</div>
							</div>
							<div class="_cut"></div>
							<div class="personal second-title">通讯及联系方式</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">户籍地址：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="address"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">户籍地址邮编：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="postcode"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">现户籍地址：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="presentAddress"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">现户籍地址邮编：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="presentPostcode"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">联系手机：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="phone"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">联系电话：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="telephone"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">电子邮箱：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="email"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">主要联系人姓名：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="contactName"></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">联系人手机：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder "id="contactPhone" ></div>
								</div>
							</div>
							<div class="weui-flex">
								<div class="">
									<div class="placeholder">与本人关系：</div>
								</div>
								<div class="weui-flex__item">
									<div class="placeholder " id="relation"></div>
								</div>
							</div>
						</div>

						<div class="button-sp-area cell">
				          	<a onclick="history.back(-1);return false;" class="weui-btn_cell weui-btn_cell-default">返回</a>
				        </div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="/res/mobile/js/zepto.min.js"></script>
	<script type="text/javascript" src="/res/mobile/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="/res/mobile/js/weui.min.js"></script>
	<!-- <script type="text/javascript" src="/res/mobile/js/example.js"></script> -->
	<script type="text/javascript" src="/res/mobile/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" class="tabbar js_show">
		$(function(){
			//获取用户信息
			$.post("/mobile/ordinary/getUserData",{},function(r){
				if(r){
					if(r.code!=1){
						window.location.href="/mobile/ordinary/login"
					}else{
						var baseInfo = r.data["baseInfo"]
						var ccRR = r.data["ccRiskRating"]
						if (baseInfo){
							$.each(baseInfo,function(i,v){
								if(i=="livingStatus"){
									if(v=="01"){
										v="单独居住"
									}else if(v=="02"){
										v="只与配偶同住 "
									}else if(v=="03"){
										v="只与子女同住 "
									}else if(v=="04"){
										v="与配偶及子女同住 "
									}else if(v=="05"){
										v="与他人同住(其他亲戚或照料者同住) "
									}else if(v=="06"){
										v="养老院"
									}else{
										v="其他"
									}
								}
								if(i=="educationStatus"){
									if(v=="01"){
										v="小学及以下 "
									}else if(v=="02"){
										v="初中 "
									}else if(v=="03"){
										v="中专/高中  "
									}else if(v=="04"){
										v="大专/大本  "
									}else if(v=="05"){
										v="硕士及以上"
									}
								}
								if(i=="profession"){
									if(v=="01"){
										v="国家机关、党群组织、企业、事业单位负责人"
									}else if(v=="02"){
										v="专业技术人员"
									}else if(v=="03"){
										v="办事人员和有关人员"
									}else if(v=="04"){
										v="商业、服务业人员"
									}else if(v=="05"){
										v="农、林、牧、渔、水利业生产人员 "
									}else if(v=="06"){
										v="生产、运输设备操作人员及有关人员 "
									}else if(v=="07"){
										v="军人"
									}else if(v=="08"){
										v="不便分类的其他从业人员"
									}
								}
								if(i=="income"){
									if(v=="01"){
										v="5千元以下"
									}else if(v=="02"){
										v="5千-1万"
									}else if(v=="03"){
										v="1万-2万"
									}else if(v=="04"){
										v="2万元以上"
									}
								}
								if(i=="paymentMethod"){
									if(v=="01"){
										v="城镇职工基本医疗保险"
									}else if(v=="02"){
										v="新城镇居民基本医疗保险"
									}else if(v=="03"){
										v="新型农村合作医疗"
									}else if(v=="04"){
										v="商业医疗保险"
									}else if(v=="05"){
										v="全公费"
									}else if(v=="06"){
										v="全自费"
									}else if(v=="07"){
										v="其他社会保险"
									}else if(v=="08"){
										v="贫困救助"
									}else{
										v="其他"
									}
								}
								$("#"+i).text(v);
							})
						}
					}
				}else{
					window.location.href="/mobile/ordinary/login"
				}
			})
		});
	</script>
</body>
</html>
{{end}}